package main

import (
	"fmt"

	"github.com/gin-gonic/gin"
)

func main() {

	engin := gin.Default()

	engin.GET("/", func(c *gin.Context) {
		path := c.FullPath()
		fmt.Println(path)

		c.JSON(200, map[string]interface{}{
			"message": "ok",
			"data":    path,
			"hello":   "world",
		})

	})

	engin.Run(":8080")
}
